import Layout from '@/layout'
const router = {
  path: '/hr',
  component: Layout,
  redirect: '/hr/group',
  name: 'hr',
  alwaysShow: true,
  meta: {
    type: 'G',
    roles: ['4210', '4220'],
    title: '薪酬',
    icon: 'people'
  },
  children: [{
    path: 'employee',
    component: () => import('@/views/hr/employee'),
    name: 'employee',
    meta: {
      type: 'G',
      roles: ['4210', '421010', '421020', '421030', '421040', '421060', '421070'],
      title: '人员管理'
    }
  }, {
    path: 'salary',
    component: () => import('@/views/hr/salary'),
    name: 'salary',
    meta: {
      type: 'G',
      roles: ['4220', '422010', '422020', '422030', '422040'],
      title: '薪酬管理'
    }
  }, {
    path: 'salarydetail',
    component: () => import('@/views/hr/salarydetail'),
    name: 'salarydetail',
    hidden: true,
    meta: {
      type: 'G',
      roles: ['422010'],
      title: '薪酬明细'
    }
  }]
}

export default router
